package com.sunjq.personalblog.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "comment")
@SequenceGenerator(name = "sequence", sequenceName = "article_sequence")
public class Comment implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1316981087583920920L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "sequence")
	private long id;
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	private String content;
}
